#include <iostream>

using namespace std;

int main()
{
    int numbers[20];
    int foo;
    int *bar = numbers;

    for (int i = 0; i < 20; ++i)
    {
        cin >> foo;
        if (foo < 10 || foo >100) continue;

        for (int *it = numbers; it != bar; it++)
        {
            if (foo == *it) goto end; 
        }

        *(bar++) = foo;

        end:
        ;//put a void expression to avoid compiler error
    }

    for (int *it = numbers; it != bar; it++)
        cout << *it << " ";
    cout << endl;

    return 0;
}


